package com.heima.method;

import java.util.Scanner;

public class Demo8 {
    //输入一个小数,输出四舍五入的整数
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double d=sc.nextDouble();
        System.out.println(sswr(d));
    }
    public static int  sswr(double a){
        int a1=(int)(a*2.0);
        int a2=(int)(a)*2;
        if(a2<a1){
            return (int)a+1;
        }
        else
        return (int)a;
    }
}
